package service

import (
	"context"
	"shopAdd-srv/dao"
	__ "shopAdd-srv/proto"
)

func (s *Shop) TopList(_ context.Context, in *__.TopReq) (*__.TopResp, error) {

	topService := dao.NewTopService()
	top, err := topService.Top()
	if err != nil {
		return nil, err
	}

	return &__.TopResp{
		List: top,
	}, nil
}
